package com.itheima.HomeWork;

public class StringHandlerDemo {
    public static void main(String[] args) {
        useStringHandler(System.out::println);
    }

    public static void useStringHandler(StringHandler aa) {
        aa.printMessage("helloword");
    }
}

interface StringHandler {
    void printMessage(String a);
}